<?php 
if(KT!='KhiThe') exit;
class banner_model extends khithe_mysql {

    public function setSubscribed($arr)
    {
        $Fullname= parent::checkStrMySQL($arr['Fullname']);
        $Email= parent::checkStrMySQL($arr['Email']);

        $update = "INSERT INTO ".subscribed."(Fullname,Email,PostDate,`Status`)
									VALUES('".$Fullname."','".$Email."','".time()."','false')";

        return parent::UpdateInsertMySQL($update);

    }

    public function get_subscribed()
    {
        $select = "SELECT * FROM ".subscribed." WHERE `Status`='false' ORDER BY `ID` ASC limit 0,3";
        $query = parent::mysql_fetch_all_rows($select);
        return $query;
    }
	
	
}
?>